﻿using Castle.ActiveRecord;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OVS.Domain
{
    [ActiveRecord("matchpkinfo")]
    public class MatchPKInfo:EntityBase
    {
        [BelongsTo(Type =typeof(Matchs),
            Column = "MatchID",
            Update =false)]
        public Matchs Matchs { get; set; }

        [BelongsTo(Type=typeof(Player),
            Column = "FirstPlayerID",
            Update =false)]
        public Player FirstPlayer { get; set; }

        [Property]
        [Display(Name = "第一名选手歌曲名")]
        public string FirstSongName { get; set; }

        [Property]
        [Display(Name = "第一名选手得票数")]
        public int FirstTickCount { get; set; }

        [Property]
        [Display(Name ="第一名选手评委打分")]
        public decimal FirstNeedScore { get; set; }

        [Property]
        [Display(Name ="第一名选手总分")]
        public decimal FirstScore { get; set; }

        [BelongsTo(Type =typeof(Player),
            Column = "SecondPlayerID",
            Update =false)]
        public Player SecondPlayer { get; set; }

        [Property]
        [Display(Name = "第二名选手歌曲名")]
        public string SecondSongName { get; set; }

        [Property]
        [Display(Name = "第二名选手得票数")]
        public int SecondTickCount { get; set; }

        [Property]
        [Display(Name = "第二名选手评委打分")]
        public decimal SecondNeedScore { get; set; }

        [Property]
        [Display(Name = "第一名选手总分")]
        public decimal SecondScore { get; set; }

        [Property]
        [Display(Name ="比赛进行状况")]
        public int BattleFlag { get; set; }


    }
}
